.class public Lcom/zuimeia/ui/view/ZMScrollView;
.super Landroid/widget/ScrollView;
.source "ZMScrollView.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;,
        Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;,
        Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;
    }
.end annotation


# instance fields
.field private mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

.field private mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

.field private mOnScrollListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 17
    invoke-direct {p0, p1}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;)V

    .line 11
    sget-object v0, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    iput-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    .line 18
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 21
    invoke-direct {p0, p1, p2}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 11
    sget-object v0, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    iput-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    .line 22
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 25
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/ScrollView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 11
    sget-object v0, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    iput-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    .line 26
    return-void
.end method


# virtual methods
.method protected onScrollChanged(IIII)V
    .registers 7
    .param p1, "l"    # I
    .param p2, "t"    # I
    .param p3, "oldl"    # I
    .param p4, "oldt"    # I

    .prologue
    .line 30
    invoke-super {p0, p1, p2, p3, p4}, Landroid/widget/ScrollView;->onScrollChanged(IIII)V

    .line 32
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;

    if-eqz v0, :cond_c

    .line 33
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;

    invoke-interface {v0, p1, p2, p3, p4}, Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;->onScroll(IIII)V

    .line 36
    :cond_c
    if-le p2, p4, :cond_24

    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    sget-object v1, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->UP:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    if-eq v0, v1, :cond_24

    .line 37
    sget-object v0, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->UP:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    iput-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    .line 39
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    if-eqz v0, :cond_23

    .line 40
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    sget-object v1, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->UP:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;->onScrollDirectionChanged(Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;)V

    .line 49
    :cond_23
    :goto_23
    return-void

    .line 42
    :cond_24
    if-ge p2, p4, :cond_23

    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    sget-object v1, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    if-eq v0, v1, :cond_23

    .line 43
    sget-object v0, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    iput-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mLastDirection:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    .line 45
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    if-eqz v0, :cond_23

    .line 46
    iget-object v0, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    sget-object v1, Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;->DOWN:Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;

    invoke-interface {v0, v1}, Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;->onScrollDirectionChanged(Lcom/zuimeia/ui/view/ZMScrollView$ScrollDirection;)V

    goto :goto_23
.end method

.method public setOnScrollDirectionChangedListener(Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    .prologue
    .line 60
    iput-object p1, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollDirectionChangedListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollDirectionChangedListener;

    .line 61
    return-void
.end method

.method public setOnScrollListener(Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;

    .prologue
    .line 52
    iput-object p1, p0, Lcom/zuimeia/ui/view/ZMScrollView;->mOnScrollListener:Lcom/zuimeia/ui/view/ZMScrollView$OnScrollListener;

    .line 53
    return-void
.end method
